package com.amtf.datafile3.core.std.parser;

import com.amtf.datafile3.DataException;
import com.amtf.datafile3.DataFieldParser;
import com.amtf.datafile3.core.std.AbsDataFieldParser;
import com.amtf.datafile3.core.std.type.StringField;

public class Object2StringFieldParser extends AbsDataFieldParser<StringField, Object, String> {
	public Object2StringFieldParser() {
		super(null);
	}

	@Override
	protected String convertValue(Object value) throws DataException {
		return value.toString();
	}

	@Override
	public DataFieldParser clone() {
		Object2StringFieldParser newObj = new Object2StringFieldParser();
		return newObj;
	}
}
